﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Sys.Repository.Entities
{
    /// <summary>
    /// 品牌介绍
    /// </summary>
    [Table("sys_BrandInfo"), Comment("品牌介绍")]
    public class BrandInfor : EfEntity
    {
        /// <summary>
        /// 内容类型
        /// 1：图片
        /// 2：视频
        /// </summary>
        [Comment("内容类型 1：图片 2：视频")]
        public int Type { get; set; } = 1;

        /// <summary>
        /// 链接地址
        /// </summary>
        [Comment("链接地址"),MaxLength(2000)]
        public string Url { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Comment("排序")]
        public int Sort { get; set; }

        /// <summary>
        /// 分组ID
        /// </summary>
        [Comment("分组ID")]
        public long GroupId { get; set; }

        /// <summary>
        /// 删除标记
        /// </summary>
        [Comment("状态")]
        public bool IsDeleted { get; set; } = false;

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
